using System;
using System.Collections.Generic;
using System.Text;

namespace GeneticAlgorithm.CP1
{
    /// <summary>
    /// Encapsulates a float number pair (x, y)
    /// </summary>
    class Individual : Individual<float[], float[]>
    {
        public Individual(float[] genotype, params Individual<float[], float[]>[] parents) : base(genotype, parents)
        {
        }

        public override float[] GeneticMapping(float[] genotype)
        {
            return genotype;
        }

        public override string ToString()
        {
            return base.ToString() + " (" + genotype[0] + ", " + genotype[1] + ")";
        }
    }
}
